/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.oracleandsxnd.erp.xsd.entity;

import com.google.common.collect.Lists;
import com.oracleandsxnd.erp.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;
import java.util.List;



/**
 * 换货单Entity
 * @author 换货单
 * @version 2019-12-21
 */
public class XsglSaleChange extends DataEntity<XsglSaleChange> {
	
	private static final long serialVersionUID = 1L;
	private String code;		// 编码
	private String cdate;		// 单据日期
	private String customerName;		// 客户名称
	private String dept;		// 销售部门
	private String user;		// 销售员
	private String company;		// 公司
	private String kind;		// 类型
	private String address;		// 收件地址
	private String tel;		// 电话
	private String lxr;		// 联系人
	private String kd;		// 快递
	private String kddh;		// 快递单号
	private String status;		// 1未开票2开票
	private Date beginCdate;		// 开始 单据日期
	private Date endCdate;		// 结束 单据日期
	private String companyname;		// 往来单位
	private String kindname;		// 往来单位
	private List<XsglSaleHDetail> xsglSaleHDetailList = Lists.newArrayList();		// 子表列表
	private List<XsglSaleTDetail> xsglSaleTDetailList = Lists.newArrayList();		// 子表列表

	public String getCompanyname() {
		return companyname;
	}

	public void setCompanyname(String companyname) {
		this.companyname = companyname;
	}

	public String getKindname() {
		return kindname;
	}

	public void setKindname(String kindname) {
		this.kindname = kindname;
	}

	public XsglSaleChange() {
		super();
	}

	public XsglSaleChange(String id){
		super(id);
	}

	@Length(min=0, max=20, message="编码长度必须介于 0 和 20 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	public String getCdate() {
		return cdate;
	}

	public void setCdate(String cdate) {
		this.cdate = cdate;
	}

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	@Length(min=0, max=255, message="销售部门长度必须介于 0 和 255 之间")
	public String getDept() {
		return dept;
	}

	public void setDept(String dept) {
		this.dept = dept;
	}
	
	@Length(min=0, max=255, message="销售员长度必须介于 0 和 255 之间")
	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}
	
	@Length(min=0, max=32, message="公司长度必须介于 0 和 32 之间")
	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}
	
	@Length(min=0, max=32, message="类型长度必须介于 0 和 32 之间")
	public String getKind() {
		return kind;
	}

	public void setKind(String kind) {
		this.kind = kind;
	}
	
	@Length(min=0, max=100, message="收件地址长度必须介于 0 和 100 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Length(min=0, max=100, message="电话长度必须介于 0 和 100 之间")
	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}
	
	@Length(min=0, max=100, message="联系人长度必须介于 0 和 100 之间")
	public String getLxr() {
		return lxr;
	}

	public void setLxr(String lxr) {
		this.lxr = lxr;
	}
	
	@Length(min=0, max=32, message="快递长度必须介于 0 和 32 之间")
	public String getKd() {
		return kd;
	}

	public void setKd(String kd) {
		this.kd = kd;
	}
	
	@Length(min=0, max=100, message="快递单号长度必须介于 0 和 100 之间")
	public String getKddh() {
		return kddh;
	}

	public void setKddh(String kddh) {
		this.kddh = kddh;
	}
	
	@Length(min=0, max=1, message="1未开票2开票长度必须介于 0 和 1 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	public Date getBeginCdate() {
		return beginCdate;
	}

	public void setBeginCdate(Date beginCdate) {
		this.beginCdate = beginCdate;
	}
	
	public Date getEndCdate() {
		return endCdate;
	}

	public void setEndCdate(Date endCdate) {
		this.endCdate = endCdate;
	}
		
	public List<XsglSaleHDetail> getXsglSaleHDetailList() {
		return xsglSaleHDetailList;
	}

	public void setXsglSaleHDetailList(List<XsglSaleHDetail> xsglSaleHDetailList) {
		this.xsglSaleHDetailList = xsglSaleHDetailList;
	}
	public List<XsglSaleTDetail> getXsglSaleTDetailList() {
		return xsglSaleTDetailList;
	}

	public void setXsglSaleTDetailList(List<XsglSaleTDetail> xsglSaleTDetailList) {
		this.xsglSaleTDetailList = xsglSaleTDetailList;
	}
}